<div class="container-fluid">
        <div class="row-fluid container_bg">
		  <div ng-include="'side-menu.html'"></div>
			<div class="span9">
				<div class="container_title">
					<div class="pos_r"><h1>user notifications</h1><a href="#/admin-notification-history" style= "position:absolute;top:5px;right:10px;">History</a>
					</div>
					<div class="container_form_top">
						<table ng-table="tableParams" class="table">
							<tr ng-repeat="user in $data">
								<td data-title="'Date'">{{user.added_date}}</td>
								<td data-title="'Notification'">
									<p ng-if='user.type=="RENEWAL ORDER"'>{{user.user_name}} Post New {{user.type}}</p>
									<p ng-if='user.type=="ORDER"'>{{user.user_name}} Post New {{user.type}}</p>
									<p ng-if='user.type=="Complaint" && user.notifiedby=="USER"'>{{user.user_name}} {{user.type}} By An Order Tracking Id {{user.order_id}}</p>
									<p ng-if='user.type=="Complaint" && user.notifiedby!="USER"'>Shop Replay By {{user.type}} On Order Tracking Id {{user.order_id}}</p>
									<p ng-if='user.type=="ReviewRating"'>{{user.user_name}} Post A {{user.type}} By An Order Tracking Id  {{user.order_id}}</p>
									<p ng-if='user.type=="Register"'>New User {{user.type}}</p>
									<p ng-if='user.type=="Shopregister"'>New {{user.type}}</p>
									<p ng-if='user.type=="sendPrice"'>Shop {{user.type}} To An Order Tracking Id {{user.order_id}}</p>
									<p ng-if='user.type=="OrderConfirmed"'>Shop  Deliverd To An Order Tracking Id {{user.order_id}}</p>
									<p ng-if='user.type=="Cancelled Auto Renewal"'>{{user.user_name}} {{user.type}} By  Renewal Order</p>
									<p ng-if='user.type=="Enabled Auto Renewal"'>{{user.user_name}} {{user.type}} By  Renewal Order</p>
								</td>
								<td data-title="'Type'">{{user.type}}</td>
								<td id="st{{user.user_medicine_order_id}}" data-title="'Action'">
									<a ng-if='user.type=="RENEWAL ORDER"' href="javascript:void(0)" ng-click="viewreneorderNotifications(user.order_id,3,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="ORDER"' href="javascript:void(0)" ng-click="vieworderNotifications(user.order_id,4,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="Complaint" && user.notifiedby=="USER"' href="javascript:void(0)" ng-click="viewComplaintNotifications(user.notifications_id,5,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="Complaint" && user.notifiedby!="USER"' href="javascript:void(0)" ng-click="viewShopNotifications(user.notifications_id,5,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="ReviewRating"' href="javascript:void(0)" ng-click="viewReviewNotifications(user.notifications_id,6,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="Register"' href="javascript:void(0)" ng-click="viewUregNotifications(user.user_id,7,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="Shopregister"' href="javascript:void(0)" ng-click="viewShopregNotifications(user.order_id,8,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="sendPrice"' href="javascript:void(0)" ng-click="viewSendPriceNotifications(user.notifications_id,11,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="OrderConfirmed"' href="javascript:void(0)" ng-click="viewOrderConfirmedNotifications(user.notifications_id,16,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="Cancelled Auto Renewal"' href="javascript:void(0)" ng-click="viewrenewalConfirmedNotifications(user.order_id,13,user.user_type_id)">VIEW</a>
									<a ng-if='user.type=="Enabled Auto Renewal"' href="javascript:void(0)" ng-click="viewrenewalConfirmedNotifications(user.order_id,14,user.user_type_id)">VIEW</a>
								</td>
							</tr>
						</table>
					</div>
					<div>{{ emptyOrders }}</div>
				</div>
			</div>
        </div>
</div>

 
